package com.tx.admin.modules.rbac.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.tx.admin.core.entity.SuperEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Entity
@ApiModel("角色用户")
public class RoleUserEntity extends SuperEntity{

	@ApiModelProperty("角色")
	@ManyToOne
	private RoleEntity role;
	
	@ApiModelProperty("用户")
	@ManyToOne
	private UserEntity user;
}
